package com.lrkj.payfee.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 房间仪表对象 tb_room_meter
 *
 * @author yajun_ren
 * @date 2021-07-27
 */
public class RoomMeter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 房间仪表id */
    private String rometerId;

    /** 代码 */
    @Excel(name = "代码")
    private String rometerCode;

    /** 仪表种类id */
    @Excel(name = "仪表种类id")
    private String kindId;

    /** 房间id */
    @Excel(name = "房间id")
    private String roomId;

    /** 所属物业 */
    @Excel(name = "所属物业")
    private String deptId;

    /** 倍率 */
    @Excel(name = "倍率")
    private BigDecimal rateDischar;

    /** 回程 */
    @Excel(name = "回程")
    private BigDecimal ticket;

    /** 损耗率 */
    @Excel(name = "损耗率")
    private BigDecimal wastage;

    /**  损耗率 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " 损耗率", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastTime;

    /** 上次读数 */
    @Excel(name = "上次读数")
    private BigDecimal lastReading;

    /** 总表 */
    @Excel(name = "总表")
    private String totals;

    /** 仪表地址 */
    @Excel(name = "仪表地址")
    private String meterAddress;

    /** 系数 */
    @Excel(name = "系数")
    private BigDecimal coefficient;

    /** 仪表箱 */
    @Excel(name = "仪表箱")
    private String boxId;

    /** 表号 */
    @Excel(name = "表号")
    private String tableNumber;

    /** 短编码 */
    @Excel(name = "短编码")
    private String shortCode;

    /** 出厂铭牌 */
    @Excel(name = "出厂铭牌")
    private String nameplate;

    //仪表种类
    private String kindName;

    //物业
    private String deptName;

    //仪表箱
    private String boxName;

    //房间
    private String roomName;

    //楼栋
    private String floorName;

    //单元
    private String unitName;

    /** 祖级ID */
    private String ancestors;

    private String ownerId;

    //户主名称
    private String customName;

    private String communityName;



    private String rometer;


    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getRometer() {
        return  this.getRoomName()+"["+this.getKindName()+"]";
    }

    public void setRometer(String rometer) {
        this.rometer = rometer;
    }

    public String getCustomName() {
        return customName;
    }

    public void setCustomName(String customName) {
        this.customName = customName;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    public void setAncestors(String ancestors)
    {
        this.ancestors = ancestors;
    }

    public String getAncestors()
    {
        return ancestors;
    }


    public String getKindName() {
        return kindName;
    }

    public void setKindName(String kindName) {
        this.kindName = kindName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getBoxName() {
        return boxName;
    }

    public void setBoxName(String boxName) {
        this.boxName = boxName;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getFloorName() {
        return floorName;
    }

    public void setFloorName(String floorName) {
        this.floorName = floorName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public void setRometerId(String rometerId)
    {
        this.rometerId = rometerId;
    }

    public String getRometerId()
    {
        return rometerId;
    }
    public void setRometerCode(String rometerCode)
    {
        this.rometerCode = rometerCode;
    }

    public String getRometerCode()
    {
        return rometerCode;
    }
    public void setKindId(String kindId)
    {
        this.kindId = kindId;
    }

    public String getKindId()
    {
        return kindId;
    }
    public void setRoomId(String roomId)
    {
        this.roomId = roomId;
    }

    public String getRoomId()
    {
        return roomId;
    }
    public void setDeptId(String deptId)
    {
        this.deptId = deptId;
    }

    public String getDeptId()
    {
        return deptId;
    }
    public void setRateDischar(BigDecimal rateDischar)
    {
        this.rateDischar = rateDischar;
    }

    public BigDecimal getRateDischar()
    {
        return rateDischar;
    }
    public void setTicket(BigDecimal ticket)
    {
        this.ticket = ticket;
    }

    public BigDecimal getTicket()
    {
        return ticket;
    }
    public void setWastage(BigDecimal wastage)
    {
        this.wastage = wastage;
    }

    public BigDecimal getWastage()
    {
        return wastage;
    }
    public void setLastTime(Date lastTime)
    {
        this.lastTime = lastTime;
    }

    public Date getLastTime()
    {
        return lastTime;
    }
    public void setLastReading(BigDecimal lastReading)
    {
        this.lastReading = lastReading;
    }

    public BigDecimal getLastReading()
    {
        return lastReading;
    }
    public void setTotals(String totals)
    {
        this.totals = totals;
    }

    public String getTotals()
    {
        return totals;
    }
    public void setMeterAddress(String meterAddress)
    {
        this.meterAddress = meterAddress;
    }

    public String getMeterAddress()
    {
        return meterAddress;
    }
    public void setCoefficient(BigDecimal coefficient)
    {
        this.coefficient = coefficient;
    }

    public BigDecimal getCoefficient()
    {
        return coefficient;
    }
    public void setBoxId(String boxId)
    {
        this.boxId = boxId;
    }

    public String getBoxId()
    {
        return boxId;
    }
    public void setTableNumber(String tableNumber)
    {
        this.tableNumber = tableNumber;
    }

    public String getTableNumber()
    {
        return tableNumber;
    }
    public void setShortCode(String shortCode)
    {
        this.shortCode = shortCode;
    }

    public String getShortCode()
    {
        return shortCode;
    }
    public void setNameplate(String nameplate)
    {
        this.nameplate = nameplate;
    }

    public String getNameplate()
    {
        return nameplate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rometerId", getRometerId())
            .append("rometerCode", getRometerCode())
            .append("kindId", getKindId())
            .append("roomId", getRoomId())
            .append("deptId", getDeptId())
            .append("rateDischar", getRateDischar())
            .append("ticket", getTicket())
            .append("wastage", getWastage())
            .append("lastTime", getLastTime())
            .append("lastReading", getLastReading())
            .append("totals", getTotals())
            .append("meterAddress", getMeterAddress())
            .append("coefficient", getCoefficient())
            .append("boxId", getBoxId())
            .append("tableNumber", getTableNumber())
            .append("shortCode", getShortCode())
            .append("nameplate", getNameplate())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
